package com.sale.system.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.sale.common.mybatis.core.mapper.BaseMapperPlus;
import com.sale.system.domain.SysInventoryAccounting;
import com.sale.system.domain.dto.SysInventoryAccountingDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: YSL
 * @Date: 2023-07-11 10:49:57
 * @Desc: 存货核算
 */
@Mapper
public interface SysInventoryAccountingMapper extends BaseMapperPlus<SysInventoryAccountingMapper, SysInventoryAccounting, SysInventoryAccounting> {


    /**
     * 根据账套id查询存款核算
     * @param accountsId
     * @return
     */
   SysInventoryAccountingDto selectInventoryAccountingList(Long accountsId);

    /**
     * 根据账套id删除存款核算
     *
     * @param accountsId
     * @return
     */
    int deleteInventoryAccountingId(long accountsId);

    /**
     * 获取该账套下的成本核算方法(1、移动平均法，2、先进先出法)
     */
    int getCostAccountingMethod(String tenantId);
}
